#include <iostream>
using namespace std;
int main()
{
    unsigned int a1,b1,a2,b2;
    char temp;
    cin>>a1>>temp>>b1>>a2>>temp>>b2;
    if((double)a1/b1>(double)a2/b2)
    {
        cout<<a1<<'/'<<b1<<" > "<<a2<<'/'<<b2;
    }
    else
    {
        if((double)a1/b1<(double)a2/b2)
        {
            cout<<a1<<'/'<<b1<<" < "<<a2<<'/'<<b2;
        }
        else
        {
            cout<<a1<<'/'<<b1<<" = "<<a2<<'/'<<b2;

        }
       
    }
}
